/**
 * $Revision: 1.0 $
 * $Author: Eric Yang $
 * $Date: Dec 29, 2009 9:33:52 PM $
 *
 * Author: Eric Yang
 * Date  : Dec 29, 2009 9:33:52 PM
 *
 */
package com.gooex.web.action.gbuy.order;

import org.c4j.system.web.exception.ServiceException;

import com.gooex.domain.base.Order;
import com.gooex.service.base.exception.ExceptionCode;

/**
 * @author Eric Yang
 * @version 1.0
 */
public class EvaluationAction extends BaseOrderAction {

	private String id;

	private Order order;

	public String viewEvaluation() throws Exception {
		order = orderManager.getOrder(id);
		if (order == null)
			throw new ServiceException(ExceptionCode.SYSTEM_ACCESS_ERROR, "");

		return SUCCESS;
	}

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
}
